/**
 * Copyright 2015 jianglibo@gmail.com
 *
 */
package com.m3958.logcollector.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;


/**
 * @author jianglibo@gmail.com
 *         2015年12月22日
 *
 */
@Entity
@Table(name = "tree_blob")
public class TreeBlob extends BaseEntity {

    /**
     * 
     */
    private static final long serialVersionUID = 4930726441839373141L;
    
    @Column(nullable = false, unique = true)
    @NotNull
    private String name;
    
    private String localedName;
    
    private String description;
    
    @Lob()
    @Column(length = 16777215)
    private String treeContent;
    
    public TreeBlob(){}
    
    public TreeBlob(String name) {
        this.setName(name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTreeContent() {
        return treeContent;
    }

    public void setTreeContent(String treeContent) {
        this.treeContent = treeContent;
    }

    public String getLocaledName() {
        return localedName;
    }

    public void setLocaledName(String localedName) {
        this.localedName = localedName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
